/**
 * @file    common_debug.h
 * @author  yhy
 * @brief   debug log
 * @version 1.0
 * @date    2025-07-09
 *
 * @copyright Copyright (c) 2025
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-07-02     yhy          the first version V1.00
 *
 */
#ifndef __COMMON_DEBUG_H__
#define __COMMON_DEBUG_H__

#define DEBUG

#include "SEGGER_RTT.h"

#ifdef DEBUG
// #define LOG(format, ...) SEGGER_RTT_printf(0, "[%s:%d] " format, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOG(format, ...) SEGGER_RTT_printf(0, format, ##__VA_ARGS__)
#else
#define LOG(format, ...)
#endif

#endif
